package com.link.base.base.common.model;

import com.link.base.core.basic.util.YmlConstants;
import com.link.core.basic.model.BasicModel;

public class AttachmentVer extends BasicModel {
    /**
     * 父ID
     */
    private Long headId;
    /**
     * 系统生成的附件名称
     */
    private String attachmentName;
    /**
     * 附件路径
     */
    private String attachmentPath;
    /**
     * 文件大小(字节)
     */
    private String attachmentSize;
    /**
     * 文件类型
     */
    private String attachmentType;
    /**
     * 备注
     */
    private String comments;
    /**
     *
     */
    private Long announcementId;
    /**
     * 附件名称
     */
    private String attachmentOriginal;
    /**
     * 附件绝对路径
     */
    private String attachmentRealPath;
    /**
     * 业务对象编码
     */
    private String headCode;
    /**
     * 业务对象名称
     */
    private String headName;
    /**
     * 所属业务模块
     */
    private String moduleType;
    /**
     * 单据类型
     */
    private String documentType;
    /**
     * 来源
     */
    private String source;
    /**
     * 地址
     */
    private String addr;
    private String lon;
    private String lat;
    private String smallurl;
    private String bigurl;
    /**
     * 对应数据库ATTACHMENT_PATH字段值，因attachmentPath在已在select是被拼接上了ip前缀
     */
    private String attachmentFilePath;
    private String attachmentRelativePath;
    /**
     * 排序
     */
    private Double seq;

    /**
     * HuangLJ 2018年05月17日 表示该附件是否是头下面的主要附件
     */
    private String isDefault;
    /**
     * 时长
     */
    private String timeLength;

    /**
     * jiangtao 2019年03月07日 该附件的创建人姓名、用户名，连同帐套在任务管理查看附件中使用
     */
    private String createdName;
    private String username;

    /** COS 新增 start*/
    /**
     * 上传类型：普通上传，cos上传
     */
    private String uploadType;

    /**
     * 存储桶ID
     */
    private String bucketId;

    /**
     * 地域id
     */
    private String regionId;

    /**
     * 临时secretId
     */
    private String tmpSecretId;

    /**
     * 临时secretKey
     */
    private String tmpSecretKey;

    /**
     * sessionToken - 用于临时秘钥访问cos
     */
    private String sessionToken;

    /**
     * 临时凭证过期时间 - unix时间戳
     */
    private String tmpExpiredTimeStamp;

    /**
     * 附件类型 by wanghao
     */
    private String fileType;

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getCreatedName() {
        return createdName;
    }

    public void setCreatedName(String createdName) {
        this.createdName = createdName;
    }

    public String getAttachmentFilePath() {
        return attachmentFilePath;
    }

    public void setAttachmentFilePath(String attachmentFilePath) {
        this.attachmentFilePath = attachmentFilePath;
    }

    public String getSmallurl() {
        return smallurl;
    }

    public void setSmallurl(String smallurl) {
        this.smallurl = smallurl;
    }

    public String getBigurl() {
        return bigurl;
    }

    public void setBigurl(String bigurl) {
        this.bigurl = bigurl;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public String getLon() {
        return lon;
    }

    public void setLon(String lon) {
        this.lon = lon;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public String getAttachmentName() {
        return attachmentName;
    }

    public void setAttachmentName(String attachmentName) {
        this.attachmentName = attachmentName;
    }

    public String getAttachmentPath() {
        return attachmentPath;
    }

    public void setAttachmentPath(String attachmentPath) {
        this.attachmentPath = attachmentPath;
    }

    public String getAttachmentSize() {
        return attachmentSize;
    }

    public void setAttachmentSize(String attachmentSize) {
        this.attachmentSize = attachmentSize;
    }

    public String getAttachmentType() {
        return attachmentType;
    }

    public void setAttachmentType(String attachmentType) {
        this.attachmentType = attachmentType;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public Long getAnnouncementId() {
        return announcementId;
    }

    public void setAnnouncementId(Long announcementId) {
        this.announcementId = announcementId;
    }

    public String getAttachmentOriginal() {
        return attachmentOriginal;
    }

    public void setAttachmentOriginal(String attachmentOriginal) {
        this.attachmentOriginal = attachmentOriginal;
    }

    public String getAttachmentRealPath() {
        return attachmentRealPath;
    }

    public void setAttachmentRealPath(String attachmentRealPath) {
        this.attachmentRealPath = attachmentRealPath;
    }

    public Long getHeadId() {
        return headId;
    }

    public void setHeadId(Long headId) {
        this.headId = headId;
    }

    public String getAttachmentRelativePath() {
        return YmlConstants.getPortalShareFileDir() + "/" + this.attachmentPath + "/" + this.attachmentName;
    }

    public void setAttachmentRelativePath(String attachmentRelativePath) {
        this.attachmentRelativePath = attachmentRelativePath;
    }

    public String getHeadCode() {
        return headCode;
    }

    public void setHeadCode(String headCode) {
        this.headCode = headCode;
    }

    public String getHeadName() {
        return headName;
    }

    public void setHeadName(String headName) {
        this.headName = headName;
    }

    public String getModuleType() {
        return moduleType;
    }

    public void setModuleType(String moduleType) {
        this.moduleType = moduleType;
    }

    public String getDocumentType() {
        return documentType;
    }

    public void setDocumentType(String documentType) {
        this.documentType = documentType;
    }

    public Double getSeq() {
        return seq;
    }

    public void setSeq(Double seq) {
        this.seq = seq;
    }

    @Override
    public String getIsDefault() {
        return isDefault;
    }

    @Override
    public void setIsDefault(String isDefault) {
        this.isDefault = isDefault;
    }

    public String getTimeLength() {
        return timeLength;
    }

    public void setTimeLength(String timeLength) {
        this.timeLength = timeLength;
    }

    public String getUploadType() {
        return uploadType;
    }

    public void setUploadType(String uploadType) {
        this.uploadType = uploadType;
    }

    public String getBucketId() {
        return bucketId;
    }

    public void setBucketId(String bucketId) {
        this.bucketId = bucketId;
    }

    public String getRegionId() {
        return regionId;
    }

    public void setRegionId(String regionId) {
        this.regionId = regionId;
    }

    public String getTmpSecretId() {
        return tmpSecretId;
    }

    public void setTmpSecretId(String tmpSecretId) {
        this.tmpSecretId = tmpSecretId;
    }

    public String getTmpSecretKey() {
        return tmpSecretKey;
    }

    public void setTmpSecretKey(String tmpSecretKey) {
        this.tmpSecretKey = tmpSecretKey;
    }

    public String getSessionToken() {
        return sessionToken;
    }

    public void setSessionToken(String sessionToken) {
        this.sessionToken = sessionToken;
    }

    public String getTmpExpiredTimeStamp() {
        return tmpExpiredTimeStamp;
    }

    public void setTmpExpiredTimeStamp(String tmpExpiredTimeStamp) {
        this.tmpExpiredTimeStamp = tmpExpiredTimeStamp;
    }

    private Long oldId;

    public Long getOldId() {
        return oldId;
    }

    public void setOldId(Long oldId) {
        this.oldId = oldId;
    }
}
